﻿<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
<head>
    <title></title>
    <link href="../../skins/grey/css/novaui.css" rel="stylesheet" type="text/css" />
    <style type="text/css">
    </style>
    <script src="http://ajax.microsoft.com/ajax/jquery/jquery-1.7.min.js" type="text/javascript"></script> 
    <script src="../../js/plugins/novaComboBox.js" type="text/javascript"></script>
    <script src="../../js/plugins/novaResizable.js" type="text/javascript"></script> 
    <script type="text/javascript">
        var proData =
            [{ id: 1, text: '广东' },
            { id: 2, text: '福建'}];
        $(function ()
        {
            
            $("#txtPro").novaComboBox({ data: null, isMultiSelect: false  });

        });
        function setdata()
        {
            var interface = $("#txtPro").novaGetComboBoxManager();
            if($("#value1").val()!="")
                proData.push({ id: $("#value1").val(), text: $("#value1").val() });
            interface.setData(proData);
        }
    </script>
</head>
<body style="padding:0;"> 
   <input type="text" id="txtPro"/>
   <br /> 
    <input type="text" value="" id="value1" class="l-text" />
    <br />
   <input type="button" onclick="setdata()" class="l-button" value="绑定值" />
 <div style="display:none;">
 <!-- 流量统计代码 -->
</div>
</body>
</html>
